package com.sun.service;

import com.sun.bean.Department;
import com.sun.dao.DepartmentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;

    /**
     * 返回所哟普部门信息
     */
    public List<Department> getAll(){
        return departmentMapper.selectByExample(null);
    }

}
